<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>现代首页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        header {
            background-color: #3498db;
            color: white;
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 2rem;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        nav ul li a:hover {
            color: #f1c40f;
        }
        
        .hero {
            background: linear-gradient(135deg, #1abc9c 0%, #3498db 100%);
            color: white;
            padding: 5rem 5%;
            text-align: center;
        }
        
        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        .hero p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto 2rem;
        }
        
        .btn {
            display: inline-block;
            background-color: #f1c40f;
            color: #333;
            padding: 0.8rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .btn:hover {
            background-color: #f39c12;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .features {
            padding: 5rem 5%;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        
        .feature-card {
            flex: 1 1 300px;
            margin: 1rem;
            padding: 2rem;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
        }
        
        .feature-card h3 {
            color: #3498db;
            margin-bottom: 1rem;
        }
        
        footer {
            background-color: #34495e;
            color: white;
            text-align: center;
            padding: 2rem 5%;
        }
        
        .counter-section {
            background-color: #ecf0f1;
            padding: 2rem 5%;
            text-align: center;
        }
        
        .counter-section button {
            background-color: #e74c3c;
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .counter-section button:hover {
            background-color: #c0392b;
        }
        
        #counter {
            font-size: 2rem;
            margin: 1rem 0;
            color: #3498db;
            font-weight: bold;
        }
        
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                text-align: center;
            }
            
            nav ul {
                margin-top: 1rem;
                justify-content: center;
            }
            
            nav ul li {
                margin: 0 1rem;
            }
            
            .hero h1 {
                font-size: 2rem;
            }
        }
    </style>
</head>

<body>
    <header>
        <h1>我的网站</h1>
        <nav>
            <ul>
                <li><a href="#">首页</a></li>
                <li><a href="#">关于我们</a></li>
                <li><a href="#">服务</a></li>
                <li><a href="#">联系我们</a></li>
            </ul>
        </nav>
    </header>

    <section class="hero">
        <h1>欢迎访问我们的网站</h1>
        <p>我们提供高质量的服务，满足您的各种需求。</p>
        <a href="#" class="btn">了解更多</a>
    </section>

    <section class="counter-section">
        <h2>互动计数器</h2>
        <button id="clickBtn">点击这里</button>
        <p id="counter">0</p>
    </section>

    <section class="features">
        <div class="feature-card">
            <h3>专业服务</h3>
            <p>我们拥有专业的团队，为您提供最优质的服务。</p>
        </div>
        <div class="feature-card">
            <h3>创新理念</h3>
            <p>我们不断创新，为您提供最新颖的解决方案。</p>
        </div>
        <div class="feature-card">
            <h3>客户至上</h3>
            <p>客户的需求是我们的首要考虑因素。</p>
        </div>
    </section>

    <footer>
        <p>&copy; 2023 我的网站. 保留所有权利。</p>
    </footer>

    <script>
        let count = 0;
        const counter = document.getElementById("counter");
        const clickBtn = document.getElementById("clickBtn");
        
        clickBtn.addEventListener("click", function() {
            count++;
            counter.textContent = count;
            console.log("点击了");
        });
    </script>
</body>

</html>